﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zocono.WCS.Domain.PlcBytesObject
{
    public class PlanarPutBatteryWriteWcsActionBO : WriteByteObjectBase
    {
        /// <summary>
        /// 请求读取电池条码握手
        /// </summary>
        public short ActionType { get; set; }
        /// <summary>
        /// 目标位置编号
        /// </summary>
        public int ToEquipmentCode { get; set; }
        public int TaskCode { get; set; }
        public override byte[] Deserialize()
        {
            byte[] bytes = new byte[10];
            HelperByte.SetDIntAt(bytes, 0, EquipmentCode);
            HelperByte.SetIntAt(bytes, 4, ActionType);
            HelperByte.SetDIntAt(bytes, 6, ToEquipmentCode);
            HelperByte.SetDIntAt(bytes, 10, TaskCode);
            return bytes;
        }
    }
}
